extends "../nengdai-2/nengdai-2.gd"


func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("本回合内，每次闪避，恢复5%血量，提高2点炮击雷击护甲(上限200)", "从容指顾")

var missNum = 0
func _onBattleEnd():
	._onBattleEnd()
	missNum = 0
	
func _onHurt(atkInfo):
	._onHurt(atkInfo)
	if atkInfo.isMiss:
		missNum += 1
		healCha(self, att.maxHp*0.05)
		var buff = hasBuff("b_nengdai")
		if buff == null:
			buff = addBuff(b_nengdai.new())
		elif buff.att.atk < 200:
			buff.att.atk += 2
			buff.att.mgiAtk += 2
			buff.att.def += 2
			if upgraded == 1:
				buff.att.suck += 0.01

class b_nengdai:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		buffName = "从容指顾"
		dispel = 2
		id = "b_nengdai"	
		att.atk = 2
		att.mgiAtk = 2
		att.def = 2	